import { AnimationClip } from "cc";
import { SubStateMachine } from "./SubStateMachine";
import { DIRECTION_ORDER_ENUM, PARAMS_NAME_ENUM } from "../Enum";
// import State from "../../Base/State";
// import { StateMachine } from "../../Base/StateMachine";
// import { SubStateMachine } from "../../Base/SubStateMachine";
// import { DIRECTION_ENUM, DIRECTION_ORDER_ENUM, PARAMS_NAME_ENUM } from "../../Enum";



export default class DirectionSubStateMachine extends SubStateMachine{

    run(): void {
        const value =this.fsm.getParams(PARAMS_NAME_ENUM.DIRECTION)   //拿到当前的方向状态？
        this.currentState = this.stateMachines.get(DIRECTION_ORDER_ENUM[value as number])
    }
}